local EffectConfig = require("excel.Effect").effect

local bit = {
	{"layer",2^2},
	{"mask",2^3},
	{"isNotRotation",2^1},
	{"angle",2^9},
	{"blendMode",2^2},
	{"light",2^10},
	{"tailDist",2^8},
	{"isFloorFly", 2^1},
}

function getConfig(effectID)
	local cf = EffectConfig[effectID]
	if not cf then
		return 0
	end
	local sum = 0
	for _, v in ipairs(bit) do
		sum = sum * v[2] + cf[v[1]]
	end
	return sum
end